<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script type="text/javascript">
        // 圆锥体积
        var height = parseFloat(prompt("请输入圆锥的高度"))
        var radius = parseFloat(prompt("请输入圆锥的半径"))

        // var volume = Math.PI * (radius * radius) * height / 3
        alert("该圆锥的体积是" + Math.PI * (radius * radius) * height / 3)
    </script>
</head>

<body>
</body>

</html>